package com.lhf.userservice.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.util.List;

/**
 * (FvsSysUser)表实体类
 *
 * @author liuhf
 * @since 2021-03-29 16:01:42
 */
@SuppressWarnings("serial")
public class FvsSysUser extends Model<FvsSysUser> {
    //主键
    @TableId(type = IdType.AUTO)
    private Long uid;
    //用户名
    private String username;
    //密码
    private String password;
    //真实名字
    private String realName;
    //手机号
    private String phone;
    //邮箱
    private String email;
    //头像地址
    private String headImg;
    //是否删除
    private Integer isDel;
    //是否锁定
    private Integer isLock;

    //角色
    private List<FvsSysRole> roles;

    public Long getUid() {
        return uid;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getHeadImg() {
        return headImg;
    }

    public void setHeadImg(String headImg) {
        this.headImg = headImg;
    }

    public Integer getIsDel() {
        return isDel;
    }

    public void setIsDel(Integer isDel) {
        this.isDel = isDel;
    }

    public Integer getIsLock() {
        return isLock;
    }

    public void setIsLock(Integer isLock) {
        this.isLock = isLock;
    }

    public List<FvsSysRole> getRoles() {
        return roles;
    }

    public void setRoles(List<FvsSysRole> roles) {
        this.roles = roles;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.uid;
    }
}
